#include "Engine.h"
#include "mywindow.h"
#include "Renderer.h"
Engine::Engine(HINSTANCE _hInstance, unsigned int _Wid, unsigned int _Hei, int _CMDSHOW):
	hInstance(_hInstance),
	Wid(_Wid),
	Hei(_Hei),
	w(new Window(_CMDSHOW)),
	r(new Renderer())
{
}
Engine::~Engine()
{
	if (w) delete w;
	if (r) delete r;
}
bool Engine::init()
{
	if(w->createWindow(Wid, Hei)) // && r->Init())
		return true;
	else
		return false;
}
void Engine::run()
{
	//while(not XButton) //RUN
	//BeginFrame
	//FRAME
	//EndFrame
}